<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" action="/Admin/Contact/index" method="post">
    <input type="hidden" name="pageNum" value="<?php echo ($page['pageNum']); ?>"/>
<input type="hidden" name="numPerPage" value="<?php echo ($page['numPerPage']); ?>" />
    <input type="hidden" name="pid" value="<?php echo ($search['pid']); ?>" />
    <input type="hidden" name="pidSort" value="<?php echo ($search['pidSort']); ?>" />
</form>

<script type="text/javascript" src="/Public/Admin/Js/twoLinkage.js"></script>
<script type="text/javascript">
$( function() {
	var parentObj = $('select[name="pidSort"]');
        var subObj = $('select[name="secondpid"]');
	$.twoLinkage( parentObj, subObj );
        
        var parentObj = $('select[name="secondpid"]');
        var subObj = $('select[name="pid"]');
	$.twoLinkage( parentObj, subObj );
} );
</script>
<div class="pageHeader">

</div>

<div class="pageContent">
    <table class="table" width="100%" layoutH="206">
        <thead>
        <tr>
            <th width="2%"><input type="checkbox" group="id" class="checkboxCtrl" ></th>
            <th width="3%">编号</th>
            <th width="15%">公司名称</th>
            <th width="20%">公司地址</th>
            <th width="15%">联系电话</th>
			<th width="10%">企业邮箱</th>
            <th width="10%">微信二维码</th>
            <th width="10%">企业微信二维码</th>
			<th width="10%">操作</th>
        </tr>
        </thead>
        <tbody>
        <?php if($dataList|count > 0): if(is_array($dataList)): $k = 0; $__LIST__ = $dataList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$volist): $mod = ($k % 2 );++$k;?><tr target="sid_user" rel="<?php echo ($volist['id']); ?>" >
                    <td><input name="id" value="<?php echo ($volist['id']); ?>" type="checkbox"></td>
                    <td><?php echo ( $page['pageNum'] - 1 ) * $page['numPerPage'] + $k;?></td>
                    <td><?php echo ($volist['company_name']); ?></td>
                    <td><?php echo ($volist['company_address']); ?></td>
                    <td><?php echo ($volist['tel']); ?>元</td>
					<td><?php echo ($volist['email']); ?></td>
                    <td>
                        <?php if($volist['wechat_img'] == ''): ?>无
                            <?php else: ?>
                            <a href="<?php echo ($volist['wechat_img']); ?>" title="<?php echo ($volist['wechat_img']); ?>" target="_blank" rel="example_group">
                                <img src="<?php echo ($volist['wechat_img']); ?>" height="50" alt="<?php echo ($volist['wechat_img']); ?>" />
                            </a><?php endif; ?>
                    </td>
					<td>
                        <?php if($volist['comp_wechat_img'] == ''): ?>无
                            <?php else: ?>
                            <a href="<?php echo ($volist['comp_wechat_img']); ?>" title="<?php echo ($volist['comp_wechat_img']); ?>" target="_blank" rel="example_group">
                                <img src="<?php echo ($volist['comp_wechat_img']); ?>" height="50" alt="<?php echo ($volist['comp_wechat_img']); ?>" />
                            </a><?php endif; ?>
                    </td>
					<td><a href="/Admin/Contact/edit/id/<?php echo ($volist['id']); ?>" target="navTab" style="color: #09F" title="修改">【编辑】</a></td>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        <?php else: ?>
        	<tr><td colspan="10" style="text-align:center;">没有数据!!!</td></tr><?php endif; ?>
        </tbody>
    </table>
    
</div>